package com.itheima.dfs.fagin;

import com.itheima.common.vo.ResultVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "leadnews-dfs",contextId = "dfsFeign")
public interface DfsFeign {
    /**
     * 远程调用从fds下载图片接口
     * @param list 接收传入的文件id集合
     * @return 返回下载的图片字节数组集合
     */
    @ApiOperation("远程调用从fds下载图片接口")
    @PostMapping("/dfs/api/dfsFeign")
    ResultVo<List<byte[]>> findFile(@RequestBody List<String> list);

}
